if (NOT OPENCV_FOUND)
    find_package(OpenCV  REQUIRED)
endif ()
if (NOT Boost_FOUND)
    find_package(Boost  REQUIRED COMPONENTS system thread)
endif ()
find_package(DAHUA REQUIRED)
file(GLOB SRC_LIST_DAHUA *.cpp)
add_library(MyDahuaCam SHARED "")
target_include_directories(MyDahuaCam PUBLIC ${DAHUA_INCLUDE_DIR} ${Boost_INCLUDE_DIRS}  ./)
target_link_libraries(MyDahuaCam
        ${OpenCV_LIBS}
        ${Boost_LIBRARIES}
        ${DAHUA_LIBRARIES})
target_sources(MyDahuaCam PRIVATE ${SRC_LIST_DAHUA})
